#include "stdafx.h"
#include "StartUi.h"


CStartUi::CStartUi()
{
	m_StateId = 0;
	m_isPlayed = false;
}


CStartUi::~CStartUi()
{
}


void CStartUi::Play(char window[])
{
	cvShowImage(window, m_Img[m_StateId]);
	m_StateId++;
	if (m_StateId >= START_IMAGE_COUNT)
		m_isPlayed = true;
}


void CStartUi::SetImage(IplImage *img[], IplImage *startimg[])
{
	for (int i = 0; i < START_IMAGE_COUNT; i++) {
		m_Img[i] = img[i];
	}
	for (int i = 0; i < UI_IMAGE_COUNT; i++) {
		m_StartImage[i] = startimg[i];
	}
}


void CStartUi::ShowImage(char window[], int id)
{
	cvShowImage(window, m_StartImage[id]);
}
